﻿<Window x:Class="YAWD.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:amazingControls="clr-namespace:AmazingWPFControls.AnimatedExpander;assembly=AmazingWPFControls"
        xmlns:YAWDProviders="clr-namespace:YAWD.UserControls.Providers"
        WindowStartupLocation="CenterScreen"
        Title="YAWD " Height="Auto" Width="Auto" Name="MainPage"
        Background="{DynamicResource BackgroundBrush}">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="25"></RowDefinition>
            <RowDefinition Name="MainRow" Height="*"></RowDefinition>
            <RowDefinition Height="30"></RowDefinition>
        </Grid.RowDefinitions>

        <Menu Width="Auto" Height="Auto" FontSize="12"
              Grid.Column="0" Grid.Row="0"
              Background="{DynamicResource ToolbarBackGroundColor}" Name="MainMenu">
            <MenuItem Header="{DynamicResource Options}" Style="{DynamicResource ForeGroundMenuFirst}">
                <MenuItem Header="{DynamicResource ProvidersConfiguration}" IsEnabled="True" Name="mniProvidersConf" Click="mniProvidersConf_Click"  Style="{DynamicResource ForeGroundMenuSecond}"></MenuItem>
                <MenuItem Header="{DynamicResource Preferences}" IsEnabled="True" Name="mniPreferences" Click="mniPreferences_Click" Style="{DynamicResource ForeGroundMenuSecond}"></MenuItem>
            </MenuItem>
            <MenuItem Header="{DynamicResource Skin}" Name="mniSkin" MenuItem.Click="mniSkin_Click"  Style="{DynamicResource ForeGroundMenuFirst}">
                <MenuItem Name="Default" CommandParameter=".\Skins\Default\Default.xaml" IsChecked="True">
                    <MenuItem.Header>
                        <StackPanel Orientation="Horizontal">
                            <Label Width="50" Content="Default" VerticalAlignment="Center" Margin="2,0,5,0"/>
                            <Rectangle Width="50" Height="20" >
                                <Rectangle.Fill>
                                    <LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
                                        <GradientStop Color="#3A4754" Offset="0"/>
                                        <GradientStop Color="#B5CCE3" Offset="1"/>
                                    </LinearGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>
                        </StackPanel>
                    </MenuItem.Header>
                </MenuItem>
            </MenuItem>
            <MenuItem Header="{DynamicResource Language}" Name="mniLanguage" IsEnabled="True" MenuItem.Click="mniLanguage_Click"  Style="{DynamicResource ForeGroundMenuFirst}">
                <MenuItem Header="{DynamicResource English}" IsEnabled="True" CommandParameter=".\Language\English.xaml" Name="mniEnglish" IsChecked="True" Style="{DynamicResource ForeGroundMenuSecond}"></MenuItem>
                <MenuItem Header="{DynamicResource French}" IsEnabled="True" CommandParameter=".\Language\French.xaml" Name="mniFrench" IsChecked="False" Style="{DynamicResource ForeGroundMenuSecond}"></MenuItem>
                <MenuItem Header="{DynamicResource Russian}" IsEnabled="True" CommandParameter=".\Language\Russian.xaml" Name="mniRussian" IsChecked="False" Style="{DynamicResource ForeGroundMenuSecond}"></MenuItem>
                <MenuItem Header="{DynamicResource Ukranian}" IsEnabled="True" CommandParameter=".\Language\Ukranian.xaml" Name="mniUkraniane" IsChecked="False" Style="{DynamicResource ForeGroundMenuSecond}"></MenuItem>
            </MenuItem>
            <MenuItem Header="{DynamicResource About}" IsEnabled="True" Name="mniAbout" Click="mniAbout_Click"  Style="{DynamicResource ForeGroundMenuFirst}"></MenuItem>
                <Image Source="/YAWD;component/Images/Donate.png" Name="imgDonate" MouseLeftButtonUp="imgDonate_MouseLeftButtonUp"></Image>
        </Menu>
        <StackPanel Grid.Column="0" Grid.Row="1">
            <amazingControls:AnimatedExpander Header="Bing" IsExpanded="True" ExpandDirection="Down">
                <YAWDProviders:Bing/>
            </amazingControls:AnimatedExpander>
            <amazingControls:AnimatedExpander Header="Ewallpapers" IsExpanded="False" ExpandDirection="Down"/>
            <amazingControls:AnimatedExpander Header="Geexy" IsExpanded="False" ExpandDirection="Down"/>
            <amazingControls:AnimatedExpander  />
            <amazingControls:AnimatedExpander  />
            <amazingControls:AnimatedExpander  />
        </StackPanel>
    </Grid>
</Window>
